from PySide import QtGui
import g_view

class Layout(QtGui.QWidget):

	def __init__(self, parent):
		super(Layout, self).__init__()
		self.parent = parent
		self.initUI()

	def initUI(self):
		#self.listobject = QtGui.QListWidget()
		#self.listobject.addItems(self.parent.data.members.keys())
		self.view = g_view.View(self.parent)
		self.hbox = QtGui.QHBoxLayout()
		self.hbox.addWidget(self.view)
		self.setLayout(self.hbox)
		self.show()
	
	def updateView(self):
		self.view.updateScene()
